﻿namespace LogManager.Helpers
{
    public static class FilterHelper
    {
        ///// <summary>
        ///// note: could be model binder
        ///// </summary>
        ///// <param name="eventFilter"></param>
        ///// <param name="typeFilter"></param>
        //public static void BindFilters()
        //{
        //    if (eventFilter.Level == "All")
        //        eventFilter.Level = null;

        //    if (sourceFilter.LogName == "All")
        //        eventFilter.Level = null;

        //    if (sourceFilter.ServerName == "All")
        //        sourceFilter.ServerName = null;

        //    if (sourceFilter.LogName == "All")
        //        sourceFilter.LogName = null;

        //    if (eventFilter.User == "All")
        //        eventFilter.User = null;

        //    if (typeFilter.PropertyName == "All")
        //        typeFilter.PropertyName = null;

        //    if (typeFilter.Type == "Undefined")
        //        typeFilter.Type = null;
        //}
    }
}